package com.yang.dao.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yang.dao.entity.OrderDetailDO;
import com.yang.dto.resp.CommodityPageQueryRespDTO;
import com.yang.dto.resp.OrderDetailPageQueryRespDTO;
import org.apache.ibatis.annotations.Param;

/**
 * 订单详情数据库持久层
 * 作者：孤城暖阳y
 * 时间：2025-03-02
 */
public interface OrderDetailMapper extends BaseMapper<OrderDetailDO> {

    /**
     * 查询商品详情信息
     */
    IPage<OrderDetailPageQueryRespDTO> pageQueryOrderDetail(Page<CommodityPageQueryRespDTO> page, @Param("ew") LambdaQueryWrapper<OrderDetailDO> queryWrapper);

}
